export function debounce(callback,delay){
    var timer = null
    return function(){
        clearTimeout(timer)
        timer = setTimeout(()=>{
            callback()
        },delay)
    }
}